<?php
/**
 * Created by PhpStorm.
 * User: junying.wei
 * Date: 17/11/05
 * Time: 下午2:09
 */
require_once 'ContentBuilder.php';

class AlipayTradeAppPayContentBuilder extends ContentBuilder
{

    private $bizContentarr = array();

    private $bizContent = NULL;

    public function getBizContent()
    {
        if(!empty($this->bizContentarr)){
            $this->bizContent = json_encode($this->bizContentarr,JSON_UNESCAPED_UNICODE);
        }
        return $this->bizContent;
    }

            private $timeoutExpress;

    public function getTimeoutExpress()
    {
        return $this->timeoutExpress;
    }

    public function setTimeoutExpress($timeoutExpress)
    {
        $this->timeoutExpress = $timeoutExpress;
        $this->bizContentarr['timeout_express'] = $timeoutExpress;
    }
            private $totalAmount;

    public function getTotalAmount()
    {
        return $this->totalAmount;
    }

    public function setTotalAmount($totalAmount)
    {
        $this->totalAmount = $totalAmount;
        $this->bizContentarr['total_amount'] = $totalAmount;
    }
            private $sellerId;

    public function getSellerId()
    {
        return $this->sellerId;
    }

    public function setSellerId($sellerId)
    {
        $this->sellerId = $sellerId;
        $this->bizContentarr['seller_id'] = $sellerId;
    }
            private $productCode;

    public function getProductCode()
    {
        return $this->productCode;
    }

    public function setProductCode($productCode)
    {
        $this->productCode = $productCode;
        $this->bizContentarr['product_code'] = $productCode;
    }
            private $body;

    public function getBody()
    {
        return $this->body;
    }

    public function setBody($body)
    {
        $this->body = $body;
        $this->bizContentarr['body'] = $body;
    }
            private $subject;

    public function getSubject()
    {
        return $this->subject;
    }

    public function setSubject($subject)
    {
        $this->subject = $subject;
        $this->bizContentarr['subject'] = $subject;
    }
            private $outTradeNo;

    public function getOutTradeNo()
    {
        return $this->outTradeNo;
    }

    public function setOutTradeNo($outTradeNo)
    {
        $this->outTradeNo = $outTradeNo;
        $this->bizContentarr['out_trade_no'] = $outTradeNo;
    }
            private $timeExpire;

    public function getTimeExpire()
    {
        return $this->timeExpire;
    }

    public function setTimeExpire($timeExpire)
    {
        $this->timeExpire = $timeExpire;
        $this->bizContentarr['time_expire'] = $timeExpire;
    }
            private $goodsType;

    public function getGoodsType()
    {
        return $this->goodsType;
    }

    public function setGoodsType($goodsType)
    {
        $this->goodsType = $goodsType;
        $this->bizContentarr['goods_type'] = $goodsType;
    }
            private $promoParams;

    public function getPromoParams()
    {
        return $this->promoParams;
    }

    public function setPromoParams($promoParams)
    {
        $this->promoParams = $promoParams;
        $this->bizContentarr['promo_params'] = $promoParams;
    }
            private $passbackParams;

    public function getPassbackParams()
    {
        return $this->passbackParams;
    }

    public function setPassbackParams($passbackParams)
    {
        $this->passbackParams = $passbackParams;
        $this->bizContentarr['passback_params'] = $passbackParams;
    }
            private $royaltyInfo;

    public function getRoyaltyInfo()
    {
        return $this->royaltyInfo;
    }

    public function setRoyaltyInfo($royaltyInfo)
    {
        $this->royaltyInfo = $royaltyInfo;
        $this->bizContentarr['royalty_info'] = $royaltyInfo;
    }
            private $extendParams;

    public function getExtendParams()
    {
        return $this->extendParams;
    }

    public function setExtendParams($extendParams)
    {
        $this->extendParams = $extendParams;
        $this->bizContentarr['extend_params'] = $extendParams;
    }
            private $subMerchant;

    public function getSubMerchant()
    {
        return $this->subMerchant;
    }

    public function setSubMerchant($subMerchant)
    {
        $this->subMerchant = $subMerchant;
        $this->bizContentarr['sub_merchant'] = $subMerchant;
    }
            private $quantity;

    public function getQuantity()
    {
        return $this->quantity;
    }

    public function setQuantity($quantity)
    {
        $this->quantity = $quantity;
        $this->bizContentarr['quantity'] = $quantity;
    }
            private $enablePayChannels;

    public function getEnablePayChannels()
    {
        return $this->enablePayChannels;
    }

    public function setEnablePayChannels($enablePayChannels)
    {
        $this->enablePayChannels = $enablePayChannels;
        $this->bizContentarr['enable_pay_channels'] = $enablePayChannels;
    }
            private $storeId;

    public function getStoreId()
    {
        return $this->storeId;
    }

    public function setStoreId($storeId)
    {
        $this->storeId = $storeId;
        $this->bizContentarr['store_id'] = $storeId;
    }
            private $specifiedChannel;

    public function getSpecifiedChannel()
    {
        return $this->specifiedChannel;
    }

    public function setSpecifiedChannel($specifiedChannel)
    {
        $this->specifiedChannel = $specifiedChannel;
        $this->bizContentarr['specified_channel'] = $specifiedChannel;
    }
            private $disablePayChannels;

    public function getDisablePayChannels()
    {
        return $this->disablePayChannels;
    }

    public function setDisablePayChannels($disablePayChannels)
    {
        $this->disablePayChannels = $disablePayChannels;
        $this->bizContentarr['disable_pay_channels'] = $disablePayChannels;
    }
            private $settleInfo;

    public function getSettleInfo()
    {
        return $this->settleInfo;
    }

    public function setSettleInfo($settleInfo)
    {
        $this->settleInfo = $settleInfo;
        $this->bizContentarr['settle_info'] = $settleInfo;
    }
            private $invoiceInfo;

    public function getInvoiceInfo()
    {
        return $this->invoiceInfo;
    }

    public function setInvoiceInfo($invoiceInfo)
    {
        $this->invoiceInfo = $invoiceInfo;
        $this->bizContentarr['invoice_info'] = $invoiceInfo;
    }
            private $extUserInfo;

    public function getExtUserInfo()
    {
        return $this->extUserInfo;
    }

    public function setExtUserInfo($extUserInfo)
    {
        $this->extUserInfo = $extUserInfo;
        $this->bizContentarr['ext_user_info'] = $extUserInfo;
    }
            private $businessParams;

    public function getBusinessParams()
    {
        return $this->businessParams;
    }

    public function setBusinessParams($businessParams)
    {
        $this->businessParams = $businessParams;
        $this->bizContentarr['business_params'] = $businessParams;
    }
        

}

?>